package com.powernode.service.impl;

import com.powernode.domain.OrderItem;
import com.powernode.mapper.OrderItemMapper;
import com.powernode.service.OrderItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class OrderItemServiceImpl implements OrderItemService{

    @Resource
    private OrderItemMapper orderItemMapper;

    @Override
    public int deleteByPrimaryKey(String itemId) {
        return orderItemMapper.deleteByPrimaryKey(itemId);
    }

    @Override
    public int insert(OrderItem record) {
        return orderItemMapper.insert(record);
    }

    @Override
    public int insertSelective(OrderItem record) {
        return orderItemMapper.insertSelective(record);
    }

    @Override
    public OrderItem selectByPrimaryKey(String itemId) {
        return orderItemMapper.selectByPrimaryKey(itemId);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderItem record) {
        return orderItemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderItem record) {
        return orderItemMapper.updateByPrimaryKey(record);
    }

}
